﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.master" AutoEventWireup="true"
    CodeFile="FacultyPage.aspx.cs" Inherits="Modeling_Sub_Pages_NewsPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #main
        {
            min-width: 1050px;
        }
        .toCenter
        {
            margin-right: auto;
            margin-left: auto;
        }
        .listViewStyleEvents
        {
            border: thin solid #C0C0C0;
            width: 150px;
            text-align: center;
            vertical-align: middle;
        }
        .dataPagerButton
        {
            text-decoration: none;
            font-size: 15px;
            font-weight: bold;
        }
        .dataPageTDStyle
        {
            text-align: right;
            border-top-style: solid;
            border-bottom-style: solid;
            border-top-width: thin;
            border-bottom-width: thin;
            border-top-color: #C0C0C0;
            border-bottom-color: #C0C0C0;
        }
        #tbEventList
        {
            padding-bottom: 20px;
            margin-right: auto;
            margin-left: auto;
        }
        #center1
        {
            width: 1060px;
            min-height: 500px;
            padding-top: 15px;
            margin-right: auto;
            margin-left: auto;
        }
        #center
        {
            width: 800px;
        }
        .imgAchivements
        {
            width: 120px;
            height: 160px;
        }
        .name
        {
            text-decoration: none;
            font-weight: bold;
            color: #660066;
        }
        .name:hover
        {
            text-decoration: underline;
        }
        .name:visited
        {
            color: #660066;
        }
        .tdCenter
        {
            border-top-style: solid;
            border-bottom-style: solid;
            border-top-width: thin;
            border-bottom-width: thin;
            border-top-color: #C0C0C0;
            border-bottom-color: #C0C0C0;
            height: 5px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <div id="center1">
        <div id="left">
            <table>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/SubPages/NewCouresPage.aspx"
                            CssClass="LinkStyle1">New Courses</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl="~/SubPages/Achievements.aspx"
                            CssClass="LinkStyle1">Achievements</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/SubPages/DepartmentPage.aspx"
                            CssClass="LinkStyle1">Departments</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/SubPages/FacilitiesPage.aspx"
                            CssClass="LinkStyle1">Facilities</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td id="activeTD">
                        <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/SubPages/FacultyPage.aspx"
                            CssClass="activeLink">Faculty</asp:HyperLink>
                    </td>
                </tr>
            </table>
        </div>
        <div id="center">
            <table width="775px" id="tbEventList">
                <tr>
                    <td>
                        <strong>Department: </strong>
                        <asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="ddlDepartment_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="tdCenter">
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:ListView ID="ProductDataList2" runat="server" GroupItemCount="4" OnPagePropertiesChanged="ProductDataList2_PagePropertiesChanged">
                            <LayoutTemplate>
                                <table class="toCenter">
                                    <tr>
                                        <td>
                                            <table border="0" cellspacing="20" cellpadding="5">
                                                <asp:PlaceHolder runat="server" ID="groupPlaceHolder"></asp:PlaceHolder>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </LayoutTemplate>
                            <GroupTemplate>
                                <tr>
                                    <asp:PlaceHolder runat="server" ID="itemPlaceHolder"></asp:PlaceHolder>
                                </tr>
                            </GroupTemplate>
                            <ItemTemplate>
                                <td class="listViewStyleEvents">
                                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# String.Format("Faculty.aspx?ID={0}", DataBinder.Eval(Container.DataItem, "[ID]")) %>'>
                                        <asp:Image ID="imgNews" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "[Image]") %>'
                                            ToolTip='<%# DataBinder.Eval(Container.DataItem, "[Full Name]") %>' runat="server"
                                            CssClass="imgAchivements" />
                                    </asp:HyperLink>
                                    <br />
                                    <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl='<%# String.Format("Faculty.aspx?ID={0}", DataBinder.Eval(Container.DataItem, "[ID]")) %>'
                                        Text='<%# DataBinder.Eval(Container.DataItem, "[Full Name]")%>' CssClass="name"></asp:HyperLink>
                                </td>
                            </ItemTemplate>
                        </asp:ListView>
                    </td>
                </tr>
                <tr>
                    <td class="dataPageTDStyle">
                        <asp:DataPager ID="DataPager1" runat="server" PagedControlID="ProductDataList2" PageSize="40">
                            <Fields>
                                <asp:NextPreviousPagerField NextPageText="Next ►" PreviousPageText="◄Previous" ButtonCssClass="dataPagerButton" />
                            </Fields>
                        </asp:DataPager>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
